#coding=utf-8
import config
import bottle

app = bottle.default_app()

def default():
	conf = {}
	for f in dir(config):
		if '__' not in f:
			conf[f] = eval('config.' + f)
	return conf

def get(conf = ''):
	if conf == '':
		return app.config
	return app.config[conf]